<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>修改模型</title>
	<meta name="renderer" content="webkit">	
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
	<meta name="apple-mobile-web-app-status-bar-style" content="black">	
	<meta name="apple-mobile-web-app-capable" content="yes">	
	<meta name="format-detection" content="telephone=no">	
	<link rel="stylesheet" type="text/css" href="__ADMIN__/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="__ADMIN__/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="__ADMIN__/global.css" media="all">
	<link rel="stylesheet" type="text/css" href="__ADMIN__/css/personal.css" media="all">
</head>
<body>
<section class="layui-larry-box">
	<div class="larry-personal">
		<header class="larry-personal-tit">
			<span>编辑模型</span>
		</header><!-- /header -->
		<div class="larry-personal-body clearfix">
			<form class="layui-form col-lg-5" action="/admin/model/edit" method="post">
				<input type="hidden" name="id" value="{$data['id']}">
				<input type="hidden" name="key" value="{$data['key']}">
				<div class="layui-form-item">
					<label class="layui-form-label">模型名</label>
					<div class="layui-input-block">  
						<input type="text" name="name"  autocomplete="off" value="{$data['name']}" class="layui-input">
						<input type="hidden" name="id"  autocomplete="off" value="{$data['modelid']}" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">模型附表</label>
					<div class="layui-input-block">
						<input type="text" name="table" value="{$data['table']}" autocomplete="off" class="layui-input">
						<input type="hidden" name="tablename" value="{$data['table']}" autocomplete="off" class="layui-input">
					</div>
				</div>
				
				<div class="layui-form-item layui-form-text">
					<label class="layui-form-label">描述</label>
					<div class="layui-input-block">
						<textarea name="description" class="layui-textarea">{$data['description']}</textarea>
					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label">是否激活</label>
					<div class="layui-input-block">
						<if condition="($data['status'] eq 1)">
							<input type="radio" name="status" value="1" title="是" checked=""><div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i><span>是</span></div>
							<input type="radio" name="status" value="0" title="否"><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><span>否</span></div>
						<else />
							<input type="radio" name="status" value="1" title="是"><div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i><span>是</span></div>
							<input type="radio" name="status" value="0" title="否" checked=""><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><span>否</span></div>
						</if>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
						<a href="/admin/model"><span class="layui-btn layui-btn-primary">返回</span></a>
					</div>
				</div>
			</form>
		</div>
	</div>
</section>
<script type="text/javascript" src="__ADMIN__/layui/layui.js"></script>
<script type="text/javascript">
	layui.use(['form','upload'],function(){
	     var form = layui.form();
	     layui.upload({ 
	         url: '' ,//上传接口 
	         success: function(res){
	          //上传成功后的回调 
	          console.log(res) 
	        } 
	     });
	});
</script>
</body>
</html>